﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zor_Modes
{ 
    /// <summary>
    /// 用户管理
    /// </summary>
    [Description("用户管理")]
    [MetadataType(typeof(Sys_Users))] //reciveModel就是下面定义的字符规则
    public class Sys_Users
    {
        #region 获取/设置 字段值
        /// <summary>
        /// 社区父级id
        /// </summary>
        [DisplayName("社区父级id")]
        public int Dt_ParentId { set; get; }
        /// <summary>
        /// 用户ID
        /// </summary>
        [DisplayName("用户ID")]
        public int User_Id { set; get;}
        /// <summary>
        /// 角色ID
        /// </summary>
        [DisplayName("角色ID")]
        public int  Roles_Id{set ; get ;}
        /// <summary>
        /// 部门ID
        /// </summary>
        [DisplayName("部门ID")]
         public int DT_Id{ set; get;}
        /// <summary>
        /// 用户名
        /// </summary>
        [DisplayName("用户名")]
        public string User_UserName{set;get;}
        /// <summary>
        /// 用户密码
        /// </summary>
        [DisplayName("用户密码")]
        public string User_Password{ set; get;}
        /// <summary>
        /// 真实姓名
        /// </summary>
        [DisplayName("真实姓名")]
        public string User_RealName
        {
            set;
            get;
        }
        /// <summary>
        /// 联系电话
        /// </summary>
        [DisplayName("联系电话")]
        public string  User_Phone
        {
            set;
            get;
        }     
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public int User_CreateDate
        {
            set;
            get;
        }
        /// <summary>
        /// 创建人用户ID
        /// </summary>
        [DisplayName("创建人用户ID")]
        public int User_CreateName
        {
            set;
            get;
        }
        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("备注")]
        public string User_Remarks
        {
            set;
            get;
        }
        /// <summary>
        /// 是否是管理员
        /// </summary>
        [DisplayName("是否是管理员")]
        public int Is_Admin { set; get; }
        /// <summary>
        /// 是否启用ID
        /// </summary>
        [DisplayName("是否启用")]
        public int Is_Available { set; get; } 
        /// <summary>
        /// 是否删除1正常2删除
        /// </summary>
        [DisplayName("是否删除1正常2删除")]
        public int IsDeleted { set; get; }
        /// <summary>
        /// 记录登录次数
        /// </summary>
        [DisplayName("记录登录次数")]
        public int User_ErrorNum { set; get; }
        #endregion 获取/设置 字段值
    }
}
